package ex1;

/**
 * Class DummyCell implements ICell.
 * Implements a dummy cell which is always dead, and doesn't intefere.
 * Main idea is to use it so that normal cells will always have all their neighbours.
 */
public class DummyCell implements ICell {

	/*
	 * (non-Javadoc)
	 * @see ex1.ICell#evolve()
	 */
	public boolean evolve() {
		return false;	// always done.
	}
	
	/*
	 * (non-Javadoc)
	 * @see ex1.ICell#canEvolve()
	 */
	public boolean canEvolve () {
		return true;
	}
	
	/*
	 * (non-Javadoc)
	 * @see ex1.ICell#done()
	 */
	public boolean done () {
		return true;
	}
	
	/*
	 * (non-Javadoc)
	 * @see ex1.ICell#wakeOwner()
	 */
	public void wakeOwner () {
		// nada :)
	}

	/* (non-Javadoc)
	 * @see ex1.ICell#getState(int)
	 */
	public boolean getState(int generation) throws NotReady {
		return false;	// always dead.
	}

	/* (non-Javadoc)
	 * @see ex1.ICell#init(ex1.ICell, ex1.ICell, ex1.ICell, ex1.ICell, ex1.ICell, ex1.ICell, ex1.ICell, ex1.ICell)
	 */
	public void init(ICell tl, ICell tm, ICell tr, ICell l, ICell r, ICell bl,
			ICell bm, ICell br) {
		// empty.
	}

}
